<template>
  <div>
    <el-button size="mini" type="primary" icon="el-icon-view" @click="toView"/>
  </div>
</template>
<script>
export default {
  components: { },
  props: {
    data: {
      type: Object,
      required: true
    },
    sup_this: {
      type: Object,
      required: true
    }
  },
  methods: {
    toView() {
      const _this = this.sup_this.$refs.form
      _this.form = { key: this.data.key, value: this.data.value }
      _this.dialog = true
      _this.isAdd = false
    }
  }
}
</script>

<style scoped>
  div{display: inline-block;margin-right: 3px;}
</style>
